/** 用户信息 **/
//token
export const useToken = () =>
  useState("token", () => {
    const token = useCookie("token");
    return token.value ? "Bearer " + token.value : "";
  });
/** 用户信息 */
export const useUserInfo = () =>
  useState("userInfo", () => {
    const userInfo = useCookie("userInfo");
    return userInfo.value ? userInfo.value : {};
  });

/** 微信扫码弹层显示状态 */
export const useWxDialogVisible = () =>
  useState("wxDialogVisible", () => false);

/** 手机号弹层显示状态 */
export const usePhoneDialogVisible = () =>
  useState("phoneDialogVisible", () => false);
